<?php

namespace App\Console\Commands\Controller;

use App\Console\BaseCommand;
use App\Models\LogArticleRepairUrlUpload;
use App\Models\LogReplaceResources;

class UploadCommand extends BaseCommand
{
    protected $signature = 'controller:upload {action} {json}';

    protected $description = 'upload commands';

    public function log($loadData)
    {
        LogArticleRepairUrlUpload::getModel()->create($loadData);

        return true;
    }

    public function logReplaceResources($loadData)
    {
        LogReplaceResources::getModel()->create($loadData);

        return true;
    }
}
